package com.example.demo.entity;

public class ClassRoom {
    private Integer id;
    private String name;
    private String state;
    private Integer capacity;
    private String address;
    private String equipment;
    
    // 新增构造方法
    public ClassRoom() {
    }
    public ClassRoom(Integer id, String name, String state, Integer capacity, String address, String equipment) {
        this.id = id;
        this.name = name;
        this.state = state;
        this.capacity = capacity;
        this.address = address;
        this.equipment = equipment;
    }
    //getter 和 setter方法
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getState() {
        return state;
    }
    public void setState(String state) {
        this.state = state;
    }
    public Integer getCapacity() {
        return capacity;
    }
    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public String getEquipment() {
        return equipment;
    }
    public void setEquipment(String equipment) {
        this.equipment = equipment;
    }
    // 重写toString方法
    @Override
    public String toString() {
        return "ClassRoom{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", state='" + state + '\'' +
                ", capacity=" + capacity +
                ", address='" + address + '\'' +
                ", equipment='" + equipment + '\'' +
                '}';
    }

    
}
